<template>
  <div></div>
</template>

<script setup lang="ts">
import useLifecycle from "@home/common/uses/use-lifecycle"
import * as mapWork from "./map"
import { useWidget } from "@mars/common/store/widget"
const { disable, activate } = useWidget()
import { useAttrs } from "vue";
useLifecycle(mapWork)
mapWork.eventTarget.on("modification", (data: any) => {
  activate({name:'Modification', data:data})
})

mapWork.eventTarget.on("CreateGraphic", (data: any) => {
  activate({name:'CreateGraphic', data:data})
})


</script>

<style scoped lang="less"></style>
